package com.group3.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@ApiModel("学生成绩类")
public class StudentLesson extends StudentLessonKey {

    @ApiModelProperty(value = "得分")
    private Float score;

    @ApiModelProperty(value = "评语")
    private String comment;

    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }
}